package by.bsu.fpmi.bbtp.authentication;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;

@WebService
@SOAPBinding(style= SOAPBinding.Style.RPC)
public interface LoginController {

    @WebMethod
    public LoginResponse login(@WebParam(name = "username") String username,
                               @WebParam(name = "password") String password);
    
    @WebMethod
    public boolean isAuthenticatedAs(@WebParam(name = "sessionId") String sessionId,
                                     @WebParam(name = "role") Role role);

}